/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db;

/**
 *
 * @author Lord Makuta
 */
public class MovieObj 
{
    private int id;
    private String title;
    private String descLink;
    private String genre;
    private double rating;
    private int copies;
    private double distrFee;
    
    public MovieObj()
    {
        id=0;
        title="";
        descLink="";
        genre="";
        rating=0;
        distrFee=0;
    }
    public MovieObj(int i, String t, String g)
    {
        id=i;
        title=t;
        genre=g;
        descLink="./images/movies/"+g+"/movie"+i+".txt";
        rating=0;
        
    }
    public void setAll(int i, String t, String g, double r, double d)
    {
        id=i;
        title=t;
        genre=g;
        descLink="./images/movies/"+g+"/movie"+i+".txt";
        rating=r;
        distrFee =d;
    }
    public void setId(int i)
    {
        id=i;
    }
    public void setTitle(String t)
    {
        title=t;
    }
    public void setGenre(String g)
    {
        genre=g;
    }
    
    public void setLink()
    {
        descLink="./images/movies/"+genre+"/movie"+id+".txt";
    }
    public void setRating(double r)
    {
        rating=r;
    }
    public void setAvailable(int c)
    {
        copies=c;
    }
    public void setDistrFee(double d)
    {
        distrFee=d;
    }
    public double getDistrFee()
    {
        return distrFee;
    }
    public int getId()
    {
        return id;
    }
    public String getTitle()
    {
        return title;
    }
    public String getGenre()
    {
        return genre;
    }
    public String getDescLink()
    {
        return descLink;
    }
    public double getRating()
    {
        return rating;
    }
    public int getAvailable()
    {
        return copies;
    }
}
